-- GENERATED SPELL FOR [Avatar of Sathal] --


function spell0_21925(pUnit, Event) --@Rain of Chaos,n/a--
pUnit:FullCastSpellOnTarget(34017,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21925', 9000, 1)
end

function spell1_21925(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(12471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21925', 3000, 1)
end

function Sorts_21925(pUnit, Event)
local choix_sorts_21925 = math.random(0, 1)
if choix_sorts_21925 == 0 then
pUnit:RegisterEvent('spell0_21925', 1, 1)
end
if choix_sorts_21925 == 1 then
pUnit:RegisterEvent('spell1_21925', 1, 1)
end
end

function mob21925_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21925', math.random(1500, 3000), 1)
end

function mob21925_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21925_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21925_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21925, 1, 'mob21925_Action')
RegisterUnitEvent(21925, 2, 'mob21925_Leave')
RegisterUnitEvent(21925, 3, 'mob21925_Kill')
RegisterUnitEvent(21925, 4, 'mob21925_Die')
